package gases.as3.librarys.components.ui.container
{
	import gases.as3.librarys.components.ui.GSkinBox;
	import gases.as3.librarys.components.ui.GUIComponents;
	import gases.as3.librarys.components.ui.module.PanelPoolManage;
	
	public class GAlertPanel extends PanelPoolManage
	{
		public function GAlertPanel()
		{
			super();
		}
		
		override protected function initialization():void
		{
			super.initialization();
			_background = new GSkinBox();
			pushDisplayObject(_background);
		}
		
		/**
		 *设置背景纯色 
		 * @param w
		 * @param h
		 * @param color
		 * 
		 */		
		public function drawColorBackground(w:Number,h:Number,color:uint=0x70b2ee,alpha:Number=0.9):void
		{
			_background.drawColorBackground(w,h,color,alpha);
		}
		
		/**
		 *设置背景图案
		 * @param value
		 * 
		 */		
		public function setBackgroundSource(value:Object):void
		{
			_background.source = value;
		}
		
		public function setWidth(value:Number):void
		{
			_background.setWidth(value);
		}
		
		public function setHeight(value:Number):void
		{
			_background.setHeight(value);
		}
		
		override public function dispose():void
		{
			this.graphics.clear();
			super.dispose();
		}
		
		public function get vAlign():String
		{
			return _vAlign;
		}
		
		public function set vAlign(value:String):void
		{
			_vAlign = value;
		}
		
		public function get hAlign():String
		{
			return _hAlign;
		}
		
		public function set hAlign(value:String):void
		{
			_hAlign = value;
		}
		
		private var _vAlign:String;
		private var _hAlign:String;
		private var _background:GSkinBox;
	}
}